package com.infolab.aims.web.form;

import java.util.ArrayList;
import java.util.List;

import javax.validation.Valid;

import org.apache.commons.collections.FactoryUtils;
import org.apache.commons.collections.list.LazyList;

import com.infolab.aims.common.bean.AbstractForm;
import com.infolab.aims.domain.SystemRole;
import com.infolab.aims.domain.SystemUser;

public class SystemUserForm  extends AbstractForm {
	
	@Valid private SystemUser systemUser;
	private String confirmPassword;
	
	private String sectionId;
	
	private List<SystemRole> systemRoles = LazyList.decorate(new ArrayList(),
		      FactoryUtils.instantiateFactory(SystemRole.class));

	public SystemUser getSystemUser() {
		return systemUser;
	}

	public void setSystemUser(SystemUser systemUser) {
		this.systemUser = systemUser;
	}

	public String getConfirmPassword() {
		return confirmPassword;
	}

	public void setConfirmPassword(String confirmPassword) {
		this.confirmPassword = confirmPassword;
	}

	public String getSectionId() {
		return sectionId;
	}

	public void setSectionId(String sectionId) {
		this.sectionId = sectionId;
	}

	public List<SystemRole> getSystemRoles() {
		return systemRoles;
	}

	public void setSystemRoles(List<SystemRole> systemRoles) {
		this.systemRoles = systemRoles;
	}
	
	
}
